<?php

    class ElementTableBrowseField extends Element {
        public function Render( $value, $first ) {
            global $server;
            global $db;
            global $table;

            ?><td<?php
                if ( $first ) {
                    ?> class="n"<?php
                }
                ?>><?php
                if ( $first ) {
                    ?><a href="" onclick="Rows.GoEdit( this, '<?php
                    echo $server[ 'name' ];
                    ?>', '<?php
                    echo $db->Name();
                    ?>', '<?php
                    echo $table->Name;
                    ?>' );return false;"><img class="edit" src="images/table_edit.png" alt="edit:" title="Edit row" /></a><a href="" onclick="Rows.GoDelete( this.parentNode.parentNode );return false;"><img class="delete" src="images/table_row_delete.png" alt="delete:" title="Delete row" /></a><?php // NOTE: no empty space between tags!
                }

                echo htmlspecialchars( $value );
            ?></td><?php
        }
    }

?>
